import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    redirect:'/employee',
    children:[
      {path: '/employee', component: () => import('../views/employee/EmployeeView.vue')},
      {path: '/scheduling', component: () => import('../views/store/SchedulingView.vue')},
      {path: '/Information', component: () => import('../views/store/InformationView.vue')},
      {path: '/Information/AddCinema', component: () => import('../views/store/AddCinema.vue')},
      {path: '/movie', component: () => import('../views/movie/MovieView.vue')},
      {path: '/user', component: () => import('../views/user/UserView.vue')},
      {path: '/member', component: () => import('../views/member/MemberView.vue')},
      {path: '/schedulingInformation', component: () => import('../views/store/SchedulingInformationView.vue')}
    ]
  },
  {path: '/login', component: () => import('../views/LoginView')}
]


const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})



export default router
